package cn.hl.system.mapper;

import cn.hl.system.domain.Role;
import cn.hl.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hulan
 * @since 2022-08-30
 */
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 删除中间表：t_role_permission
     * @param id
     */
    void deleteRolePermissionByRoleId(Long id);

    /**
     * 删除中间表：t_role_menu
     * @param id
     */
    void deleteRoleMenuByRoleId(Long id);

    /**
     * 添加中间表：t_role_permission
     * @param role
     */
    void addRolePermission(Role role);

    /**
     * 添加中间表：t_role_menu
     * @param role
     */
    void addRoleMenu(Role role);

    /**
     * 删除中间表：t_employee_role
     * @param id
     */
    void deleteEmployeeRoleByRoleId(Long id);
}
